aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/mass test client/Commands/System/HelpCommand.cs
blob: a53b3c0009b16b67d00733324944beb0b85caf2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System;
using System.Collections.Generic;
using System.Text;
using libsecondlife;
using libsecondlife.Packets;

namespace libsecondlife.TestClient
{
    public class HelpCommand: Command
    {
        public HelpCommand(TestClient testClient)
		{
			Name = "help";
			Description = "Lists available commands.";
		}

        public override string Execute(string[] args, LLUUID fromAgentID)
		{
			StringBuilder result = new StringBuilder();
			result.AppendFormat("\n\nHELP\nClient accept teleport lures from master and group members.\n");
			foreach (Command c in Client.Commands.Values)
			{
				result.AppendFormat(" * {0} - {1}\n", c.Name, c.Description);
			}

            return result.ToString();
		}
    }
}